#!/usr/bin/python3


def test():
    dict2 = {}
    dict2['one'] = "1 - 菜鸟教程"
    dict2[2] = "2 - 菜鸟工具"

    tinydict = {'name': 'runoob', 'code': 1, 'site': 'www.runoob.com'}

    print(dict2['one'])  # 输出键为 'one' 的值
    print(dict2[2])  # 输出键为 2 的值
    print(tinydict)  # 输出完整的字典
    print(tinydict.keys())  # 输出所有键
    print(tinydict.values())  # 输出所有值


if __name__ == '__main__':
    test()
